﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Common;
namespace iPortal
{
    public partial class _Default : System.Web.UI.Page
    {
        string strQuery = string.Empty;
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!IsPostBack)
            {
                AjaxPro.Utility.RegisterTypeForAjax(typeof(_Default));

                Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrShopingCart.ascx", plleft);
                Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrSuport.ascx", plleft);
                Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrSeach.ascx", plleft);
                Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrLeafMenu.ascx", plMenu);
                if (Request.QueryString["Order"].ToString() != null)
                {
                    Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrOrder.ascx", plContent);
                }

                try
                {
                    if (Request.QueryString["Productid"].ToString() != null && Request.QueryString["cateid"].ToString() != null)
                    {
                        Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrProductDetail.ascx", plContent);

                    }
                    else
                    {
                        Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrProduct.ascx", plContent);

                    }
                }
                catch (Exception)
                {

                    Common.Utilities.GetControlContent(Utilities.ControlUrl() + "ctrProduct.ascx", plContent);
                }


            }
        }
    }
}
